/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

/**
 *
 * @author 王仲秋
 */
public class WeiXinUserEntity {
    private String openid;
    private String nickname;
    private int sex;
    private String province;
    private String city;
    private String country;
    private String headimgurl;
    private String privilege;
    private String unionid;

    public String getOpenid() {
        return openid;
    }

    protected void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    protected void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getSex() {
        return sex;
    }

    protected void setSex(int sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    protected void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    protected void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    protected void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    protected void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getPrivilege() {
        return privilege;
    }

    protected void setPrivilege(String privilege) {
        this.privilege = privilege;
    }

    public String getUnionid() {
        return unionid;
    }

    protected void setUnionid(String unionid) {
        this.unionid = unionid;
    }
    
    enum sex {

        MALE(1, "男"),
        FEMALE(2, "女");
        private final String desc;
        private final int value;

        sex(int value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }

        public int getValue() {
            return value;
        }
    }

    @Override
    public String toString() {
        return "WeiXinUserEntity{" + "openid=" + openid + ", nickname=" + nickname + ", sex=" + sex + ", province=" + province + ", city=" + city + ", country=" + country + ", headimgurl=" + headimgurl + ", privilege=" + privilege + ", unionid=" + unionid + '}';
    }
    
}
